package com.rm.zeyou.controller;

import com.rm.zeyou.response.ApiRestResponse;
import com.rm.zeyou.service.PayConfigService;
import com.rm.zeyou.vo.response.SelectPayTypeResponseVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 支付方式配置表 前端控制器
 * </p>
 *
 * @author YanYang
 * @since 2025-04-09 10:27:55
 */
@Api(tags = "支付方式相关")
@RestController
@RequestMapping("/api/payConfig")
public class PayConfigController {
    @Resource
    private PayConfigService payConfigService;

    @ApiOperation(value = "查支付方式")
    @GetMapping("selectPayType")
    public ApiRestResponse<List<SelectPayTypeResponseVo>> selectPayType() {
        return payConfigService.selectPayType();
    }

}
